/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.asu.entity;

import com.haulmont.cuba.core.entity.BaseUuidEntity;

import javax.persistence.*;

/**
 * Author: Sergey42
 * Date: 01.12.13 17:15
 */
@Table(name = "EXT_MARK")
@Entity(name = "ext$Mark")
public class Mark extends BaseUuidEntity {

    private static final long serialVersionUID = 8262212237742446103L;

    @ManyToOne
    @JoinColumn(name = "DIPLOMA_STUDENT_ID")
    protected DiplomaStudent diplomaStudent;

    @ManyToOne
    @JoinColumn(name = "BLANK_ID")
    protected CommissionMemberBlank blank;

    @Column(name = "MARK")
    protected Integer mark;

    @Column(name = "RECOMMENDATION", length = 100)
    protected String recommendation;

    public DiplomaStudent getDiplomaStudent() {
        return diplomaStudent;
    }

    public void setDiplomaStudent(DiplomaStudent diplomaStudent) {
        this.diplomaStudent = diplomaStudent;
    }

    public Integer getMark() {
        return mark;
    }

    public void setMark(Integer mark) {
        this.mark = mark;
    }

    public CommissionMemberBlank getBlank() {
        return blank;
    }

    public void setBlank(CommissionMemberBlank blank) {
        this.blank = blank;
    }

    public String getRecommendation() {
        return recommendation;
    }

    public void setRecommendation(String recommendation) {
        this.recommendation = recommendation;
    }
}
